namespace ScrumSprintMonitor.Extensibility
{
	public interface IConfigurationManager
	{
		T GetConfigurationValue<T>(string sectionName, string property, T defaultValue);
	}

	public static class ConfigurationManagerExtensions
	{
		public static T GetConfigurationValue<T>(this IConfigurationManager configManager, object addinObject, string property, T defaultValue)
		{
			return configManager.GetConfigurationValue(addinObject.GetType().Namespace + ".Properties.Settings", property, defaultValue);
		}
	}
}